Hybris Sales UX API icon

Hybris Sales UX API

(0 reviews)

List Questions - Assurant

Returns the list of questions and answers used to triage the devices before sending an offer creation.

URL
https://[localhost]:[port]/ecom-sales-ux/v1/{businessId}/questions
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Y
cURL request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/ecom-sales-ux/ecom-sales-ux/v1/PR/questions' \
--header 'X-Correlation-ID: 644e1dd7-2a7f-18fb-b8ed-ed78c3F92c2b' \
--header 'client_id: abcde' \
--header 'client_secret: 12345'
Response
[
    {
        "name": "01_POWERON_LCTI",
        "resourceCharacteristic": [
            {
                "name": "languages",
                "value": [
                    {
                        "text": "Does the Device Power On and Off?",
                        "language": "ENGLISH",
                        "answers": [
                            {
                                "name": "POWERON_NO",
                                "text": "No",
                                "defect": ""
                            },
                            {
                                "name": "POWERON_YES",
                                "text": "Yes",
                                "defect": ""
                            }
                        ]
                    },
                    {
                        "text": "¿El dispositivo se enciende?",
                        "language": "SPANISH",
                        "answers": [
                            {
                                "name": "POWERON_NO",
                                "text": "No",
                                "defect": ""
                            },
                            {
                                "name": "POWERON_YES",
                                "text": "Si",
                                "defect": ""
                            }
                        ]
                    }
                ]
            }
        ]
    },
    {
        "name": "02_THEFT_DISABLED_LCTI",
        "resourceCharacteristic": [
            {
                "name": "languages",
                "value": [
                    {
                        "text": "Is the Activation Lock turned off? (e.g. Find My iPhone or Reactivation Lock)",
                        "language": "ENGLISH",
                        "answers": [
                            {
                                "name": "THEFTDIS_NO",
                                "text": "No",
                                "defect": ""
                            },
                            {
                                "name": "THEFTDIS_YES",
                                "text": "Yes",
                                "defect": ""
                            }
                        ]
                    },
                    {
                        "text": "¿Has desactivado la funcion antirrobo en tu dispositivo?",
                        "language": "SPANISH",
                        "answers": [
                            {
                                "name": "THEFTDIS_NO",
                                "text": "No",
                                "defect": ""
                            },
                            {
                                "name": "THEFTDIS_YES",
                                "text": "Si",
                                "defect": ""
                            }
                        ]
                    }
                ]
            }
        ]
    },
    {
        "name": "03_LCDOK_LCTI",
        "resourceCharacteristic": [
            {
                "name": "languages",
                "value": [
                    {
                        "text": "Is the display screen free of cracks and does not have any screen damage?",
                        "language": "ENGLISH",
                        "answers": [
                            {
                                "name": "LCDOK_NO",
                                "text": "No",
                                "defect": ""
                            },
                            {
                                "name": "LCDOK_YES",
                                "text": "Yes",
                                "defect": ""
                            }
                        ]
                    },
                    {
                        "text": "¿Tiene el dispositivo una pantalla funcional libre de grietas y otros daños?",
                        "language": "SPANISH",
                        "answers": [
                            {
                                "name": "LCDOK_NO",
                                "text": "No",
                                "defect": ""
                            },
                            {
                                "name": "LCDOK_YES",
                                "text": "Si",
                                "defect": ""
                            }
                        ]
                    }
                ]
            }
        ]
    },
    {
        "name": "04_DAMFREE_LCTI",
        "resourceCharacteristic": [
            {
                "name": "languages",
                "value": [
                    {
                        "text": "Is the device free of physical damage?",
                        "language": "ENGLISH",
                        "answers": [
                            {
                                "name": "DAMFREE_NO",
                                "text": "No",
                                "defect": ""
                            },
                            {
                                "name": "DAMFREE_YES",
                                "text": "Yes",
                                "defect": ""
                            }
                        ]
                    },
                    {
                        "text": "¿El dispositivo está libre de daños físicos o modificaciones?",
                        "language": "SPANISH",
                        "answers": [
                            {
                                "name": "DAMFREE_NO",
                                "text": "No",
                                "defect": ""
                            },
                            {
                                "name": "DAMFREE_YES",
                                "text": "Si",
                                "defect": ""
                            }
                        ]
                    }
                ]
            }
        ]
    }
]
Definitions
nametypedescriptionrequired
namestringName to identify the triage questionY
resourceCharacteristicarrayA list of characteristicsY
resourceCharacteristic[].namestringName of characteristic. Wording and answers in every supported languageY
resourceCharacteristic[].valuearrayValue of characteristicY
resourceCharacteristic[].value[].textstringWording to be presented to the customerY
resourceCharacteristic[].value[].languagestringLanguage of the wordingY
resourceCharacteristic[].value[].answersarrayA List of possible answers for the questionY
resourceCharacteristic[].value[].answers[].namestringName that identifies the answer for a questionY
resourceCharacteristic[].value[].answers[].textstringWording of the answer in the specific languageY
resourceCharacteristic[].value[].answers[].defectstringContains the defect associated with this answer. Eg: DISPLAY_PROBLEM, LIQUID_DAMAGE, POWER_ON, FMIPY

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource."
    }]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
  "errors" : [{
      "code" : 404,
      "message" : "The server could not find the requested resource.",
      "description" : "The requested operation failed because a resource associated with the request could not be found."
    }]
}
[ 405 ]

Method Not Allowed - HTTP method not allowed for this resource. The method specified in the Request-Line is not allowed for the resource identified by the Request-URI.

{
    "errors": [{
            "code": 405,
             "message": "APIKIT:METHOD_NOT_ALLOWED",
             "description": "HTTP Method POST not allowed for : /questions"
        }]
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "Internal Server Error",
      "description": "The request failed due to an internal error."
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation GET /questions for Business Id: xxxx not implemented"
    }]
  }

Reviews